package com.company;

import com.mongodb.client.FindIterable;
import com.mongodb.client.MongoCollection;
import org.bson.Document;

public class Main {

    public static void main(String[] args) {

        MongoCollection<Document> col =  MongoDBTest.getCollection();
//        System.out.println("----got collection----");

        MongoDBTest.saveLog(col,MongoDBTest.initLog());

//        System.out.println("----insterted----");
        MongoDBTest.queryMongoDBALL(col);
        MongoDBTest.closeMongoClient();
    }
}
